﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    EnableEventValidation="false" CodeBehind="View.aspx.cs" Inherits="Wicresoft.RDW.Product.View" %>

<%@ Register Src="../UserControls/PagerControl.ascx" TagName="PagerBasicControl"
    TagPrefix="uc" %>
<%@ Register Src="../UserControls/LocationLabControl.ascx" TagName="LocationLabControl"
    TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <script language="javascript" type="text/javascript">
        $(function () {
            $("#<%=btnQuery.ClientID %>").click(checkAllTextValid);
            $("#<%=btnAdd.ClientID %>").click(checkAllTextValid);
        });     
   </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class="main_title">
        <h2>
            <%=Resources.NameResource.Product_Manage%></h2>
    </div>
    <div class="line_gray">
    </div>
    <br />
    <div>
        <div>
            <uc1:LocationLabControl ID="ucLocationLab" EnableValidation="false" Vertical="true"
                runat="server" />
            <asp:Label ID="lblChName" runat="server" />
            <asp:TextBox ID="txtChName" runat="server" />
            <asp:Label ID="lblEnName" runat="server" />
            <asp:TextBox ID="txtEnName" runat="server" />
        </div>
        <br />
        <div>
            <asp:Label ID="lblStatus" runat="server" />
            <asp:RadioButton ID="rtbnAll" Checked="true" GroupName="a" runat="server" />
            <asp:RadioButton ID="rbtnActive" GroupName="a" runat="server" />
            <asp:RadioButton ID="rbtnInactive" GroupName="a" runat="server" />
            <asp:Button ID="btnQuery" runat="server" OnClick="btnQuery_Click" />
        </div>
        <div align="right">
            <asp:Button ID="btnAdd" runat="server" OnClick="btnAdd_Click" />
        </div>
    </div>
    <div class="HistoryApplicationContent">
        <asp:GridView ID="ProductGridView" runat="server" AutoGenerateColumns="false" OnRowDeleting="ProductGridView_RowDeleting"
            OnRowUpdating="ProductGridView_RowUpdating" DataKeyNames="ProductId" OnRowDataBound="ProductGridView_RowDataBound"
            HeaderStyle-CssClass="dcTableHeader" RowStyle-CssClass="dcTableAlternatingItem"
            AlternatingRowStyle-CssClass="dcTableItem" Width="100%">
            <Columns>
                <asp:TemplateField ItemStyle-Width="4%">
                    <ItemTemplate>
                        <asp:Label ID="lblNum" runat="server" />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField ItemStyle-Width="10%">
                    <ItemTemplate>
                        <asp:Label ID="locNamelab" runat="server" />
                    </ItemTemplate>
                    <EditItemTemplate>
                        <asp:TextBox ID="locNametxt" runat="server" />
                    </EditItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField ItemStyle-Width="10%">
                    <ItemTemplate>
                        <asp:Label ID="labNamelab" runat="server" />
                    </ItemTemplate>
                    <EditItemTemplate>
                        <asp:TextBox ID="labNametxt" runat="server" />
                    </EditItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="Name_CN" ItemStyle-Width="30%" />
                <asp:BoundField DataField="Name_EN" ItemStyle-Width="30%" />
                <asp:TemplateField ItemStyle-Width="7%">
                    <ItemTemplate>
                        <asp:Label ID="lblSatus" runat="server" />
                    </ItemTemplate>
                    <EditItemTemplate>
                        <asp:TextBox ID="txtStatus" runat="server" />
                    </EditItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField ShowHeader="true" ItemStyle-Width="15%">
                    <ItemTemplate>
                        <asp:LinkButton class="CommandButton" ID="BtnUpdate" runat="server" CausesValidation="False"
                            CommandName="Update"></asp:LinkButton>
                        <asp:LinkButton class="CommandButton" ID="BtnDelete" runat="server" CausesValidation="False"
                            CommandName="Delete"></asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <EmptyDataTemplate>
                <table width="100%">
                    <tr class="dcTableHeader">
                        <th width="4%">
                            <%=Resources.NameResource.No%>
                        </th>
                        <th width="10%">
                            <%=Resources.ManageResource.mgr_lblLocationName%>
                        </th>
                        <th width="10%">
                            <%=Resources.ManageResource.mgr_lblLabName%>
                        </th>
                        <th width="30%">
                            <%=Resources.ManageResource.mgr_lblProductNameCN%>
                        </th>
                        <th width="30%">
                            <%=Resources.ManageResource.mgr_lblProductNameEN%>
                        </th>
                        <th width="7%">
                            <%=Resources.ManageResource.mgr_lblProductStatus%>
                        </th>
                        <th width="15%">
                            <%=Resources.ManageResource.mgr_lblAction%>
                        </th>
                    </tr>
                </table>
            </EmptyDataTemplate>
        </asp:GridView>
        <uc:PagerBasicControl ID="pager" runat="server" PageSize="10" />
    </div>
</asp:Content>
